﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Areas/Admin/Views/Shared/MainContent.Master" Inherits="System.Web.Mvc.ViewPage<MShop.Core.Domain.Department>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Edit
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<div id="fullBox">
<div id="formOutBox">
  <div id="formTitle">
	 <div class="formTitleCard_c">修改部门</div>
	 <div class="formTitlRight">
	 <img src="/Content/back.png" width="16" height="16" border="0" align="middle" style="margin-right:3px;margin-left:15px;" />
	 <%: Html.ActionLink("返回", "Index") %>
	 </div>
  </div>
  <div id="formBox">
    <% Html.EnableClientValidation(); %>
    <% using (Html.BeginForm()) {%>
        <%: Html.ValidationSummary(true) %>
        <table width="100%" border="0" cellspacing="0" cellpadding="3" class="formTable">
              <tr>
                <td width="120"><%: Html.LabelFor(model => model.ParentId) %>：</td>
                <td width="305px;"><%: Html.DropDownListFor(model => model.ParentId, ViewData["Departments"] as IList<SelectListItem>)%>
                <%: Html.ValidationMessageFor(model => model.ParentId) %></td>
				<td></td>
              </tr>
			  <tr>
                <td><%: Html.LabelFor(model => model.DeptName) %>：</td>
                <td><%: Html.EditorFor(model => model.DeptName) %>
                <%: Html.ValidationMessageFor(model => model.DeptName) %></td>
				<td></td>
			  </tr>
			  <tr>
                <td><%: Html.LabelFor(model => model.DeptMemo) %>：</td>
                <td><%: Html.EditorFor(model => model.DeptMemo)%>
                <%: Html.ValidationMessageFor(model => model.DeptMemo) %></td>
				<td></td>
              </tr>
			  
			  <tr>
                <td colspan="3" align="center"><input type="submit" value=" 保存 " class="btn" /></td>
              </tr>
            </table>
    <% } %>

  </div>
</div>
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="cphMeta" runat="server">
</asp:Content>

<asp:Content ID="Content4" ContentPlaceHolderID="cphFooter" runat="server">
</asp:Content>

